using QTool.BEPUphysics;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using QTool.BEPUphysics.Entities.Prefabs;
using QTool.NetFrame;
using QTool.BEPUphysics.Entities;
using QTool.BEPUphysics.CollisionShapes.ConvexShapes;
using QTool.BEPUphysics.CollisionShapes;

namespace QTool.NetFrame
{
    public class FixCapsuleCollider : FixCollider
    {
        public Fix64 length = 1;
        public Fix64 radius = 0.5f;

        protected override EntityShape CreateShape()
        {
            return new CapsuleShape(length * transform.lossyScale.y, radius * Mathf.Max(transform.lossyScale.x, transform.lossyScale.z));
        }
    }

}